#include "util_math.h"

static const float pif = 3.141592653589793f;
static const float radiansPerDegree = pif / 180.0f;

//degrees to radians
float radf(float x) {
    return x * radiansPerDegree;
}

float randf() {
    return float(rand()) / RAND_MAX;
}